package com.example.teacherdemo.Service.Impl;

import com.example.teacherdemo.Dao.UserLoginDao;
import com.example.teacherdemo.Entity.Student;
import com.example.teacherdemo.Entity.Teacher;
import com.example.teacherdemo.Service.UserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sun.dc.pr.PRError;

@Service
public class UserLoginServiceImpl implements UserLoginService {
    @Autowired
    private UserLoginDao userLoginDao;
    @Override
    public Teacher teacherLogin(String name, String password) {
        return userLoginDao.teacherLogin(name,password);
    }

    @Override
    public Student studentLogin(String name, String password) {
        return userLoginDao.studentLogin(name,password);
    }
}
